package com.example.curriculum;

import java.io.Serializable;

/**
 * 课程的实体类,用来对应数据库
 */
public class Course implements Serializable {
    private String Name;//课程名字
    private String teacher;//授课老师
    private String Room;//上课教室
    private int day;//星期几
    private int Start;//开始时间
    private int End;//结束时间

    //因为每次新增都要完整的输入数据，所以直接定义全参数的构造方法
    public Course(String name, String teacher, String room, int day, int start, int end) {
        this.Name = name;
        this.teacher = teacher;
        this.Room = room;
        this.day = day;
        this.Start = start;
        this.End = end;
    }
    //用快捷键直接生成get和set方法

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getRoom() {
        return Room;
    }

    public void setRoom(String room) {
        this.Room = room;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getStart() {
        return Start;
    }

    public void setStart(int start) {
        this.Start = start;
    }

    public int getEnd() {
        return End;
    }

    public void setEnd(int end) {
        this.End = end;
    }
}
